﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;

namespace UtilZ.Dotnet.Ex.Model
{
    /// <summary>
    /// 选中项接口
    /// </summary>
    public interface ICheckItem : ICheckItemShow
    {
        /// <summary>
        /// 是否选中改变事件
        /// </summary>
        event EventHandler<CheckedArgs<ICheckItem>> CheckedChanged;

        /// <summary>
        /// 是否选中[true:选中;false:未选中]
        /// </summary>
        bool IsChecked { get; set; }

        /// <summary>
        /// 设置是否选中值
        /// </summary>
        /// <param name="isChecked">是否选中[true:选中;false:未选中]</param>
        /// <param name="raiseNotifyPropertyChanged">是否触发属性改变事件[true:触发;false:不触发]</param>
        void SetIsChecked(bool isChecked, bool raiseNotifyPropertyChanged);
    }
}
